<div class="span8 alert">
  <%= form_for @company,:url=>"home/valid",:builder => DistrictCnSelector::Helpers::FormBuilder, :html => {:class => 'form-horizontal'} do |f| %>
    <legend>form_for</legend>
    <%= f.district_select_ul :region_code %>
    <%= f.district_select :loc_code %>
    <div class="form-actions">
      <%= f.submit "提交", :class => "btn btn-success" %>
    </div>
  <% end %>

  <%= simple_form_for @company, :url => '#', :html => {:class => 'form-horizontal'} do |f| %>
    <legend>simple_form_for</legend>
    <%= f.input :region_code, :as => :district_select_ul, :prompt_class => "btn btn-success" %>
    <%= f.input :loc_code, :as => :district_select %>
    <div class="form-actions">
      <%= f.submit "提交", :class => "btn btn-success" %>
    </div>
  <% end %>

  <%= form_tag "#", :class => 'form-horizontal' do %>
    <legend>form_tag</legend>
    <%= district_select_ul(:company, :region_code, "331000", :theme => :bootstrap, :prompt_class => "btn btn-danger") %>
    <%= district_select(:company, :loc_code, "331000") %>

    <div class="form-actions">
      <%= submit_tag "提交", :class => "btn btn-success" %>
    </div>
  <% end %>

</div>

